package com.ds.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.apache.commons.lang.RandomStringUtils;

public class SequenceUtils {
	
	public static String getSeq(String prefix){
		Date date = new Date();
		return prefix+new SimpleDateFormat("yyyyMMddHHmmss").format(date)+RandomStringUtils.randomNumeric(3);
	}
	
	public static String  getRandomNum(String prefix,int count){
		 String str = "0123456789";
	     return RandomStringUtils.random(count, str);
	}
	
	public static String  getRandomString(String prefix,int count){
		 String str = "qwertyuiopasdfghjklzxcvbnm0123456789";
	     return RandomStringUtils.random(count, str);
	}
	
	public static void main(String[] args) {
		System.out.println(getRandomNum("",6));
	}
}
